package de.szut.Pong.GUI;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class Test extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = -424876150042164121L;
	private JMenuBar menuBar;
	private JMenu mnGame;
	private JMenu mnOptions;
	private JMenuItem mntmNewGame;
	private JMenuItem mntmKiselection;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Test frame = new Test();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Test() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		
		menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		mnGame = new JMenu("Game");
		menuBar.add(mnGame);
		
		mntmNewGame = new JMenuItem("New Game");
		mnGame.add(mntmNewGame);
		
		mnOptions = new JMenu("Options");
		menuBar.add(mnOptions);
		
		mntmKiselection = new JMenuItem("KI-Selection");
		mnOptions.add(mntmKiselection);
	}
}
